<template>
    <div class="card">
        <div class="card_header">{{ props.title }}</div>
        <slot></slot>
    </div>
</template>

<script setup>
const props = defineProps({
    title: { type: String, default: '' }
});
</script>

<style lang="scss" scoped>
.card {
    padding: 0 24px 24px;
    margin-bottom: 16px;
    background-color: #fff;
    .card_header {
        padding: 20px 0;
        margin-bottom: 24px;
        border-bottom: 1px solid #eaeaea;
        font-size: 16px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #33302d;
        line-height: 16px;
    }
    .el-form-item:last-child {
        margin-bottom: 0;
    }
}
</style>
